Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix query parameter encoding #40

Merged
merged 2 commits into from
Mar 27, 2015

Conversation

irock
Copy link
Contributor

@irock irock commented Mar 19, 2015

This fixes handling of URIs with special characters. Without this patch, segment URIs such as e.g. http://example.com/0.webm?param=%26 are translated to http://example.com/0.webm?param=&.

@palmerj3
Copy link
Contributor

👍

@@ -277,7 +277,7 @@ goog.Uri.prototype.resolve = function(relativeUri) {
}

if (overridden) {
absoluteUri.setQueryData(relativeUri.getDecodedQuery());
absoluteUri.setQueryData(relativeUri.getQueryData().clone());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! This bug appears to exist upstream, as well. Can you report and/or patch there, too? https://github.com/google/closure-library/blob/master/closure/goog/uri/uri.js#L335

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Yes, will do.

joeyparrish added a commit that referenced this pull request Mar 27, 2015
@joeyparrish joeyparrish merged commit 902df77 into shaka-project:master Mar 27, 2015
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants